<template>
    <div>
        <el-form   class="demo-form-inline" :model="checkForm" label-position="right">
            <!-- <el-form-item label="照片" class="cameraItem">
                <div class="cameraContent">
                    <img :src="inputMateriel.checkMaterial.photoPath" alt="" v-if="inputMateriel.checkMaterial.photoPath">
                    <span @click="showDialog3('camera')">拍照上传</span>
                </div>
            </el-form-item> -->
            <el-form-item :label="item.name" v-for="item in checkForm.list" :key="item.id" class="input100">
                <el-input v-model="item.value" v-if="item.type==0"  class="inputSuffix"></el-input>
                <el-select v-model="item.value" v-else-if="item.type==1" placeholder="请选择" class="inputSelect">
                    <el-option :label="item.reference" value="1"></el-option>
                    <el-option label="否" value="0"></el-option>
                </el-select>
                <el-input placeholder="请输入内容" v-model="item.value" v-else-if="item.type==2" class="inputSuffix" >
                    <el-button slot="append">{{item.unit}}</el-button>
                </el-input>
                <div class="reference" v-if="item.remark">（备注：{{item.remark}}）</div>
            </el-form-item>
            <div style="text-align:center">
                <el-button @click="submit" type="primary">确 定</el-button>
            </div>
        </el-form>
    </div>
</template>
<script>
export default {
    props:{
        checkForm:Object
    },
    methods:{
        submit(){
             let self = this;
            self.$emit('addUpdate',self.checkForm);
        }
    }
}
</script>
<style scoped>

</style>

